<template>
  <div class="weekend">
    <div class="weekend-line"></div>
    <div class="weekend-line"></div>
    <div class="weekend-rec">
      <div class="weekend-r-title">
        <img class="title-img" src="http://img1.qunarzz.com/piao/fusion/1711/89/ebc329f16c55bb02.png" alt="">
        <span class="title">周末去哪儿</span>
      </div>
      <div class="weekend-item" v-for="item in itemList" :item="item" :key="item.id">
        <div class="weekend-img">
          <img :src="item.imgURL" alt="">
        </div>
        <div class="weekend-info">
          <p class="weekend-name">{{item.desc}}</p>
          <p class="weekend-desc">{{item.talking}}</p>
        </div>
        <div class="weekend-line"></div>
      </div>
    </div>
  </div>
</template>
<script>
export default{
  name: 'HomeWeekend',
  data: function () {
    return {
      itemList: [{
        id: '001',
        imgURL: 'http://img1.qunarzz.com/sight/source/1606/85/c6b6bad1b977e.jpg_r_640x214_5c638941.jpg',
        desc: '漂流勇进，烧烤露营',
        talking: '轻松水上漂，任我乐逍遥'
      }, {
        id: '002',
        imgURL: 'http://img1.qunarzz.com/sight/source/1606/85/c6b6bad1b977e.jpg_r_640x214_5c638941.jpg',
        desc: '北京国际鲜花港',
        talking: '轻松水上漂，任我乐逍遥'
      }]
    }
  }
}
</script>
<style lang="stylus" scoped>
  .weekend
    width :100%
  .weekend:after
    content :""
    clear :both
  .weekend-line
    width 100%
    height :0.2rem
    background-color :#eaeaea
    float :left
  .weekend-rec
    width :100%
    float :left
  .weekend-r-title
    width :100%
    float :left
    margin :0.2rem 0.2rem
  .title-img
    width :0.36rem
  .title
    font-size :0.28rem
  .weekend-item
    float :left
  .weekend-img
    width :100%
    overflow :hidden
    height :0
    padding-bottom :37.9%
    img
      width :100%
  .weekend-info
    width: 80%
    height: 1.22rem
    position :relative
    margin-left :10%
    .weekend-name,.weekend-desc
      position :absolute
  .weekend-name
    top: 0.25rem
    color: #212121
    font-size: 0.30rem;
  .weekend-desc
    top: 0.7rem
    color: #616161;
    font-size :0.26rem
</style>
